package com.inspur.userstorage.mapper;

import com.inspur.userstorage.domain.UserEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper{

    List<UserEntity> selectList(@Param("search") String search);

    UserEntity selectById(@Param("userId") String userId);

    UserEntity selectByLoginNameOrEmail(@Param("loginName") String loginName);

    List<UserEntity> selectPage(@Param("search") String search, @Param("firstResult") int firstResult, @Param("maxResults") int maxResults);

    int count();
}
